<template>
  <div id="course">
    <div class="course-top">
      <div class="vourse-img">
        <img :src="require('@/assets/img/tuijiekecheng.webp')" alt="" />
      </div>
      <span>推荐课程</span>
    </div>
    <div class="course-bottom">
      <p class="p1">5天哈佛外教体验营</p>
      <p class="p2">每天25分钟，认识75%的单词</p>
      <div class="span1">
        <span>每天限量100</span>
      </div>
      <div class="lingyuan">
        0元领取
      </div>
      <div class="nm">
        <img :src="require('@/assets/img/nm.webp')" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },

  components: {},

  computed: {},

  mounted() {},

  methods: {}
};
</script>
<style lang="scss" scoped>
#course {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  .course-top {
    width: 100%;
    height: 60px;
    display: flex;
    // justify-content: center;
    align-items: center;
    span {
      font-size: 17px;
      font-weight: 600;
      margin-left: 5px;
    }
    .vourse-img {
      width: 30px;
      height: 30px;
      img {
        width: 22.5px;
        height: 25px;
      }
    }
  }
  .course-bottom {
    overflow: hidden;
    width: 100%;
    height: 157px;
    border-radius: 20px;
    border: 2px #f1f5f7 solid;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    p {
      margin: 0;
    }
    .p1 {
      font-size: 17px;
      font-weight: 600;
      text-align: left;
      line-height: 17px;
    }
    .p2 {
      margin-top: 14px;
      font-size: 14.5px;
      line-height: 14.5px;
      text-align: left;
    }
    .span1 {
      display: flex;
      justify-content: flex-start;
    }
    span {
      margin-top: 14px;
      font-size: 12px;
      background: #f9dde0;
      color: #d05259;
      font-weight: 600;
    }
    .lingyuan {
      margin-top: 14px;
      width: 315px;
      height: 40px;
      line-height: 40px;
      font-size: 18px;
      color: #fff;
      background: red;
      border-radius: 20px;
    }
  }
  .nm {
    width: 100px;
    height: 40px;
    background: #62ceff;
    position: absolute;
    top: -3px;
    right: -35px;
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    img {
      width: 35px;
      height: 35px;
      transform: rotate(-45deg);
    }
  }
}
</style>
